<?php
/**
 * Biểu diễn category cho product
 * 
 * @author luubk
 * @since 09-08-2012 - 23:15:59
 */
?>

<ul>                        
    <?php
    if (have_posts()):
        while (have_posts()):
            the_post();
            ?>
            <li class="content_item_wrap">
                <div class="content_item">
                    <a href="<?php the_permalink(); ?>" 
                       title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                       rel="bookmark">                                        
                           <?php
                           if (has_post_thumbnail())
                                   echo the_post_thumbnail(array(194, 194));
                           else
                           {
                               ?>
                            <img src="<?php echo bloginfo('template_url'); ?>/img/pro_1.jpg"/>
                            <?php
                        }
                        ?>
                    </a>
                </div>
                <p>
                    <a href="<?php the_permalink(); ?>" 
                       title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                       rel="bookmark">
                           <?php the_title(); ?>
                    </a>
                </p>                           
            </li>
            <?php
        endwhile;
    endif;
    wp_reset_postdata();
    ?>                  
</ul>
<div class="clear"></div>

<?php
/**
 * End of category-product
 */